﻿@using Microsoft.AspNetCore.Mvc.Localization;
@inject IViewLocalizer Localizer
@using LView.CMS.Models;
@model List<LMSManagerRole>
@{
    ViewData["Title"] = "用户管理";
}

<form class="layui-form layui-form-pane" style="width:100%;">
    @Html.AntiForgeryToken()
    @Html.Hidden("Id")
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">@Localizer["TaskName"]</label>
        <div class="layui-input-block">
            <input type="text" name="Name" readonly class="layui-input Name" lay-verify="required|Name" placeholder="@Localizer["TaskNamePlaceholder"]">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">@Localizer["Role"]</label>
        <div class="layui-input-block">
            <select name="RoleId" class="RoleId" lay-filter="RoleId" lay-verify="required">
                @foreach (var item in Model)
                {
                    <option value="@item.Id">@item.RoleName</option>
                }
            </select>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="sendTask">@Localizer["Submit"]</button>
            <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary">@Localizer["Reset"]</button>
        </div>
    </div>
</form>

@section Scripts{
    <script type="text/javascript" src="~/layui/layui.js"></script>
    <script type="text/javascript" id="testScript" data="@Url.Content(ViewData["VideoUrl"].ToString())" src="~/js/LMSTask/taskAdd.js?_=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
}
